<%--
  Created by IntelliJ IDEA.
  User: yuzhihao
  Date: 2022/3/6
  Time: 15:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/head.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/css/layui.css">
    <link rel="shortcut icon" href="${pageContext.request.contextPath}/image/smallLogo.svg" type="image/x-icon">
    <script src="${pageContext.request.contextPath}/js/jquery-3.6.0.min.js"></script>
    <script src="${pageContext.request.contextPath}/layui/layui.js"></script>
</head>
<body>
<%--head登陆注册部分--%>
    <div class="login-regist">
        <div class="back">
            <div class="head-left">
                <c:if test="${empty customer}">
                    <span class="login">
                    <a href="${pageContext.request.contextPath}/customer/login.jsp">登陆</a>
                    </span>
                    <span>｜</span>
                    <span class="regist">
                    <a href="${pageContext.request.contextPath}/customer/regist.jsp">免费注册</a>
                </span>
                </c:if>
                <c:if test="${!empty customer}">
                    <span class="login">
                    欢迎用户 <span style="color: #23b7b7">${customer.memberName}</span>
                    </span>
                </c:if>

                <span>｜</span>

                <c:if test="${empty customer}">
                    <span class="myself">
                        <a href="${pageContext.request.contextPath}/customer/login.jsp">我的一嗨</a>
                    </span>

                </c:if>
                <c:if test="${!empty customer}">
                    <span class="myself">
                    <a href="${pageContext.request.contextPath}/customer/customer_info.jsp">我的一嗨</a>
                    </span>
                    <span>｜</span>
                    <span class="myself">
                        <a href="${pageContext.request.contextPath}/member/logout">退出登陆</a>
                    </span>
                </c:if>


            </div>
        </div>
    </div>
<%--    head导航栏部分--%>
    <div class="title_box">
        <div class="cus_title">
            <div class="logo">
                <a href="${pageContext.request.contextPath}/index.jsp" class="logo_a">
                    <img src="${pageContext.request.contextPath}/image/left_logo.svg" alt="">
                </a>
                <div class="list_box">
                    <ul class="title_list">
                        <li>
                            <a href="${pageContext.request.contextPath}/index.jsp" class="home_index">首页</a>
                            <span class="home"></span>
                        </li>
                        <li>
                            <a href="${pageContext.request.contextPath}/car/getAll/page/1" class="own_car">自驾租车</a>
                            <span class="by_car"></span>
                        </li>
                        <li>
                            <a href="${pageContext.request.contextPath}/shoplist" class="shop_outlets">营业网点</a>
                            <span class="business_outlets"></span>
                        </li>
                        <li>
                            <c:if test="${empty customer}">
                                <a href="${pageContext.request.contextPath}/customer/login.jsp" class="coupon_activety">优惠活动</a>
                                <span class="promotions"></span>
                            </c:if>
                            <c:if test="${!empty customer}">
                                <a href="${pageContext.request.contextPath}/coupon/${customer.memberId}" class="coupon_activety">优惠活动</a>
                                <span class="promotions"></span>
                            </c:if>
                        </li>
                        <li>
                            <a href="${pageContext.request.contextPath}/allreview" class="comment">评论分享</a>
                            <span class="comment_sharing"></span>
                        </li>
                        <li>
                            <c:if test="${empty customer}">
                                <a href="${pageContext.request.contextPath}/customer/login.jsp" class="current_page">个人中心</a>
                                <span class="current_page_bottom"></span>
                                <span></span>
                            </c:if>
                            <c:if test="${!empty customer}">
                                <a href="${pageContext.request.contextPath}/customer/customer_info.jsp" class="current_page">个人中心</a>
                                <span class="current_page_bottom"></span>
                                <span></span>
                            </c:if>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

</body>
</html>
